#!/bin/bash

# 构建项目
mvn clean package -DskipTests

# 找到所有依赖JAR
DEPENDENCIES=$(mvn dependency:build-classpath -Dmdep.outputFile=/dev/stdout -q)

# 使用java命令运行，明确包含所有依赖
java -cp "target/hudi_touch_spark-0.15.0.jar:$DEPENDENCIES" org.example.SparkHudiReader 